<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="box">
        <div v-show="login_status" class="user-info">
            <span>欢迎～</span>
            <a href="">个人中心</a>
            <a href="">退出登录</a>
        </div>

        <div v-show="!login_status" class="login">
            <a href="">登录</a>
            <a href="">注册</a>
        </div>
    </div>

    <script>
        let vm = new Vue({
            el:"#box",
            data:{
                login_status: false, // 假设有个变量表示登录状态
            }
        })
    </script>
</body>
</html>
